package com.hongdee.crm.task.service;

import com.hongdee.base.basedao.IBaseDao;

/**
 * Created by My on 2017/3/25.
 */
public interface ITCrmTimeTaskService extends IBaseDao {

    public Integer guanAiShengRiQuartz() throws Exception;

    public Integer guanAiZhiBaoQuartz() throws Exception;

    public Integer guanAiYanBaoQuartz() throws Exception;

    public Integer liuShiQuartz() throws Exception;

    public Integer nianShenQuartz() throws Exception;

    public Integer ciNianJiaoQiangQuartz() throws Exception;

    public Integer ciNianShangYeQuartz() throws Exception;

    public Integer xuBaoShangYeQuartz() throws Exception;

    public Integer xuBaoJiaoQiangQuartz() throws Exception;

    public Integer jieDaiShangYeQuartz() throws Exception;

    public Integer jieDaiJiaoQiangQuartz() throws Exception;

    public Integer baoXianHuoYueQuartz() throws Exception;

    public Integer baoXianFeiHuoYueQuartz() throws Exception;

    public Integer yanBaoLeiXingIdQuartz() throws Exception;




    /**
     * 定时更新任务未处理的数量
     * @throws Exception
     */
    public void countSaIDNums() throws Exception;

    /**
     * 保养与车辆有关的定时任务 每天处理
     * @throws Exception
     */
    public void maintainTimeTaskDay()throws Exception;

    /**
     * 保养相关
     * @throws Exception
     */
    public void maintainTimeTaskMonth()throws Exception;

    /**
     * 标签相关
     * @throws Exception
     */
    public void carlabelTaskDay() throws Exception;

    /**
     * 返厂相关
     * @throws Exception
     */
    public void carBackFacTaskDay()throws Exception;

    /**
     * 保险、关爱、流失、年审
     * @throws Exception
     */
    public void bngTaskDay() throws Exception;

    /**
     * 销售数据导入，更新车辆From_company字段
     * @throws Exception
     */
    public Integer updFromCompanyQuartz()throws Exception;


    /**
     * 更新任务SAID
     * @throws Exception
     */
    public Integer updCrmTaskSaIdQuartz()throws Exception;
    public Integer updCrmTaskSaId(String companyId) throws Exception;

    /**
     * 更新续保结束时间
     * @return
     * @throws Exception
     */
    public Integer updInsuranceEndDateQuartz()throws Exception;

    /**
     * 关闭指定任务
     * @param companyId
     * @return
     * @throws Exception
     */
    public Integer closeTaskByCompanyQuartz(String companyId)throws Exception;

    /**
     * 将销售明细中没有车主档案的信息，生成临时车主档案
     * @param companyId
     * @return
     * @throws Exception
     */
    public Integer createCrmCarInfoBySaleQuartz(String companyId) throws Exception;



    /**
     * 更新延保平均保养里程信息
     * @return
     * @throws Exception
     */
    public Integer updExsuranceMaintainAvgMile() throws Exception;

    /**
     * 券卡到期提醒
     * @return
     * @throws Exception
     */
    public Integer couponExpireRemindQuqrtz()throws Exception;
    /**
     * 券卡到期提醒 根据公司生成券卡到期提醒信息
     * @param companyId
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    public Integer couponExpireRemindByCompnayQuartz(String companyId,String startTime,String endTime) throws Exception;
}
